# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-columnar
_pkgname=Columnar
pkgver=1.4.1
pkgrel=5
pkgdesc='A library for creating columnar output strings using data as input.'
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('MIT')
depends=('python' 'python-toolz' 'python-wcwidth')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/Columnar-$pkgver.tar.gz")
sha512sums=('b49aa31a0da5886e506c7ac324a693adc58e762e351d7c30401c517376f60d57170b2029aee10195ff9c23aea93b80b123e181e4f6665d0ddac9ad53e82b9984')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

